package com.msdp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.msdp.entity.Message;
import com.msdp.entity.SeckillVoucher;
import org.springframework.stereotype.Service;

import java.util.List;


public interface MessageService extends IService<Message> {



    /**
     * 添加用户到聊天列表
     * @param receiveUserId
     * @return
     */
    void chat(Long receiveUserId);

    void sendMessage(Message message);

    /**
     * 根据接收人id获取消息列表
     * @param receiveUserId
     * @return
     */
    List<Message> getMessages(Long receiveUserId);
}
